.ocr-container {
  min-height: 100vh;
  padding: 40px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-family: 'Arial', sans-serif;
}

.btn-animate {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  z-index: 100;
}

.btn-animate:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.header {
  text-align: center;
  margin-bottom: 40px;
  color: #fff;
}

.header h1 {
  font-size: 36px;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header p {
  font-size: 18px;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.main-content {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.upload-section {
  margin-bottom: 30px;
}

.upload-area {
  width: 100%;
}

.upload-area :deep(.el-upload-dragger) {
  background: rgba(102, 126, 234, 0.1);
  border: 2px dashed #667eea;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.upload-area :deep(.el-upload-dragger:hover) {
  background: rgba(102, 126, 234, 0.2);
  border-color: #764ba2;
}

.result-section {
  margin-top: 30px;
}

.image-preview {
  text-align: center;
  margin-bottom: 20px;
}

.preview-image {
  max-width: 100%;
  max-height: 400px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.recognition-controls {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin: 30px 0;
  flex-wrap: wrap;
}

.recognize-btn, .copy-btn, .download-btn {
  min-width: 120px;
  transition: all 0.3s ease;
}

.recognize-btn:hover, .copy-btn:hover, .download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.result-display {
  margin-top: 30px;
}

.result-stats {
  margin-bottom: 20px;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.result-textarea {
  margin: 20px 0;
}

.detailed-results {
  margin-top: 30px;
}

.detailed-results h4 {
  color: #303133;
  margin-bottom: 15px;
  font-size: 18px;
}

.message-alert {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
}

@media (max-width: 768px) {
  .ocr-container {
    padding: 20px 10px;
  }
  
  .main-content {
    padding: 20px;
    margin: 0 10px;
  }
  
  .header h1 {
    font-size: 28px;
  }
  
  .header p {
    font-size: 16px;
  }
  
  .btn-animate {
    position: relative;
    top: 0;
    left: 0;
    margin-bottom: 15px;
    display: inline-block;
  }
  
  .recognition-controls {
    flex-direction: column;
    align-items: center;
  }
  
  .result-stats {
    flex-direction: column;
    align-items: center;
  }
}
